package com.czh.subject.application.config;

import com.czh.subject.application.Interceptor.FeignInterceptor;
import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 注入Feign拦截器
 * @author caozaihui
 * @version 1.0
 * @since 2024/9/9 10:40
 */
@Configuration
public class FeignInterceptorConfig {

    @Bean
    public RequestInterceptor getFeignInterceptor(){
        return new FeignInterceptor();
    }
}
